package ModelLayer;

/**
 * Vestbjerg project
 * @GroupB2 (UCN - Computer Science DMAJ0914) 
 */
public class Unit
{
    // instance variables
    private Machinery machinery;
    private String serialNumber;
    private boolean availible;

    /**
     * Constructor for objects of class Unit
     */
    public Unit(Machinery machinery, String serialNumber)
    {
        // initialise instance variables
        this.machinery = machinery;
        this.serialNumber = serialNumber;
        availible = true;
    }
    
    public Machinery getMachinery() 
    {
        return machinery;
    }
    
    public String getSerialNumber() 
    {
        return serialNumber;
    }
    
    public boolean isAvailible() 
    {
        return availible;
    }
    
    public void setMachinery(Machinery machinery) 
    {
        this.machinery = machinery;
    }
    
    public void setSerialNumber(String serialNumber) 
    {
        this.serialNumber = serialNumber;
    }
    
    public void setAvailibility(boolean availibility) 
    {
        this.availible = availibility;
    }
}
